<div id="visits_update">
<ul class="visits_update generic_list_widget">
<?php foreach( $this->notifications as $notification ): ?>
<li>
    <div class="photo">
    <?php echo $this->htmlLink($notification->getOwner()->getHref(), $this->itemPhoto($notification->getOwner(), 'thumb.icon', $notification->getOwner()->getTitle()), array('class' => 'thumb')) ?>
    </div>
    <div class="info">
        <div class="title">
        <?php echo $this->htmlLink($notification->getOwner()->getHref(), $notification->getOwner()->getTitle()) ?>
        </div>
        <div class="stats">
            <?php echo $this->translate('Viewed your profile');?> <?php echo $this->timestamp($notification->visit_date) ?>
        </div>
        <div class="owner">
        <span><?php echo $this->translate(array('%s view', '%s views', $notification->visit_count), $this->locale()->toNumber($notification->visit_count)) ?></span>
        </div>
      </div>
</li>
<?php Engine_Api::_()->getDbtable('visits', 'visits')->markVisitasRead($notification->getIdentity()); ?>
<?php endforeach; ?>
<li class="visits_view_all"><a href="visits"><?php echo $this->translate('View all Visits');?></a></li>
</ul>
</div>